<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改AI智能识别数据集')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-collectionService-edit" th:object="${aiIdentifyCollectionT}">
            <input name="collectionId" th:field="*{collectionId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">模型名称：</label>
                <div class="col-sm-8">
                    <input name="modelName" th:field="*{modelName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型类别：</label>
                <div class="col-sm-8">
                    <input name="modelKind" th:field="*{modelKind}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型编码：</label>
                <div class="col-sm-8">
                    <input name="modelId" th:field="*{modelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">数据集编码：</label>
                <div class="col-sm-8">
                    <input name="collectionNo" th:field="*{collectionNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">数据集名称：</label>
                <div class="col-sm-8">
                    <input name="collectionName" th:field="*{collectionName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">数据集类型：</label>
                <div class="col-sm-8">
                    <input name="collectionKind" th:field="*{collectionType}" class="form-control" type="text">
                </div>
            </div>


            <div class="form-group">
                <label class="col-sm-3 control-label">数据集图片数量：</label>
                <div class="col-sm-8">
                    <input name="collectionImgNum" th:field="*{collectionImgNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">原图：</label>
                <div class="col-sm-8">
                    <img   id="image" alt="Login" width="200"    th:src="*{checkResourcePath}"/>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "AI/collectionService";
        $("#form-collectionService-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                console.log("地址=》{}",prefix + "/edit")
                $.operate.save(prefix + "/edit", $('#form-collectionService-edit').serialize());
            }
        }
    </script>
</body>
</html>